package com.nulldev.util.web.HttpServer3.pages.brainfuck_backend.demo;

import com.nulldev.util.io.file.FileUtil;
import com.nulldev.util.web.HttpServer3.HttpServer3;
import com.nulldev.util.web.HttpServer3.SSLBehaviour;
import com.nulldev.util.web.HttpServer3.pages.brainfuck_backend.BrainfuckPage;

public class BrainfuckPageDemo {

	public static void main(String[] args) throws Exception {
		final HttpServer3 hs3 = new HttpServer3(9000, true, SSLBehaviour.DISABLED, null);
		final BrainfuckPage bf = new BrainfuckPage("/demo", FileUtil.getResourceAsString(BrainfuckPageDemo.class, "demo.bf"));
		hs3.addPage(bf);
	}
}
